package com.ruoyi.shop.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 订单对象 trans_log
 * 
 * @author ruoyi
 * @date 2021-11-09
 */
public class TransLog extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 订单号 */
    @Excel(name = "订单号")
    private String orderNo;

    /** 客户id */
    @Excel(name = "客户id")
    private Long memberId;

    /** 客户名称 */
    @Excel(name = "客户名称")
    private String memberName;

    /** 消费时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "消费时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date orderTime;

    /** 消费渠道 */
    @Excel(name = "联系电话")
    private String phoneNum;

    /** 消费渠道 */
    @Excel(name = "消费渠道")
    private String orderChannel;

    /** 消费金额 */
    @Excel(name = "消费金额")
    private String orderAmount;

    /** 客户评价 */
    @Excel(name = "客户评价")
    private String cusEvaluation;

    /** 货物件数 */
    @Excel(name = "货物件数")
    private String goodsNum;

    /** 订单状态 */
    @Excel(name = "订单状态")
    private String orderStatus;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setOrderNo(String orderNo) 
    {
        this.orderNo = orderNo;
    }

    public String getOrderNo() 
    {
        return orderNo;
    }
    public void setMemberId(Long memberId) 
    {
        this.memberId = memberId;
    }

    public Long getMemberId() 
    {
        return memberId;
    }
    public void setMemberName(String memberName) 
    {
        this.memberName = memberName;
    }

    public String getMemberName() 
    {
        return memberName;
    }
    public void setOrderTime(Date orderTime) 
    {
        this.orderTime = orderTime;
    }

    public Date getOrderTime() 
    {
        return orderTime;
    }
    public void setOrderChannel(String orderChannel) 
    {
        this.orderChannel = orderChannel;
    }

    public String getOrderChannel() 
    {
        return orderChannel;
    }
    public void setOrderAmount(String orderAmount) 
    {
        this.orderAmount = orderAmount;
    }

    public String getOrderAmount() 
    {
        return orderAmount;
    }
    public void setCusEvaluation(String cusEvaluation) 
    {
        this.cusEvaluation = cusEvaluation;
    }

    public String getCusEvaluation() 
    {
        return cusEvaluation;
    }

    public void setPhoneNum(String phoneNum) {
        this.phoneNum = phoneNum;
    }

    public String getPhoneNum() {
        return phoneNum;
    }

    public String getGoodsNum() {
        return goodsNum;
    }

    public void setGoodsNum(String goodsNum) {
        this.goodsNum = goodsNum;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public String getOrderStatus() {
        return orderStatus;
    }

    public void setOrderStatus(String orderStatus) {
        this.orderStatus = orderStatus;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("orderNo", getOrderNo())
            .append("memberId", getMemberId())
            .append("memberName", getMemberName())
            .append("orderTime", getOrderTime())
            .append("phoneNum", getPhoneNum())
            .append("orderChannel", getOrderChannel())
            .append("orderAmount", getOrderAmount())
            .append("remark", getRemark())
            .append("cusEvaluation", getCusEvaluation())
            .append("goodsNum", getGoodsNum())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("updateTime", getUpdateTime())
            .append("updateBy", getUpdateBy())
            .append("goodsNum", getGoodsNum())
            .append("orderStatus", getOrderStatus())
            .toString();
    }
}
